package com.inputabc.ct.v1.ui.inputbox;

import com.inputabc.ct.v1.service.InputBoxUIService;
import com.inputabc.ct.v1.service.impl.InputBoxUIServiceImpl;
import com.inputabc.ct.v1.ui.inputbox.component.InputBoxCloseButtonFrame;
import com.inputabc.ct.v1.ui.inputbox.component.InputBoxFrame;

public class InputBoxBuilder {
    private InputBoxFrame inputBoxFrame;
    private InputBoxCloseButtonFrame inputBoxCloseButtonFrame;
    private InputBoxUIService inputBoxUIService;

    public void build() {
        inputBoxFrame = new InputBoxFrame();
        inputBoxCloseButtonFrame = new InputBoxCloseButtonFrame();
        inputBoxUIService = new InputBoxUIServiceImpl();
        inputBoxUIService.setLayouts(inputBoxFrame);
        inputBoxUIService.setBackgrounds(inputBoxFrame);
        inputBoxUIService.setFonts(inputBoxFrame);
        inputBoxUIService.setBounds(inputBoxFrame);
        inputBoxUIService.setBorders(inputBoxFrame);
        inputBoxUIService.bindingListeners(inputBoxFrame);
        inputBoxUIService.setOthers(inputBoxFrame);
        inputBoxFrame.setVisible(true);

        inputBoxCloseButtonFrame.setVisible(true);

    }

    public InputBoxFrame getInputBoxFrame() {
        return inputBoxFrame;
    }

    public void setInputBoxFrame(InputBoxFrame inputBoxFrame) {

        this.inputBoxFrame = inputBoxFrame;
    }

    public InputBoxCloseButtonFrame getInputBoxCloseButtonFrame() {
        return inputBoxCloseButtonFrame;
    }

    public void setInputBoxCloseButtonFrame(InputBoxCloseButtonFrame inputBoxCloseButtonFrame) {
        this.inputBoxCloseButtonFrame = inputBoxCloseButtonFrame;
    }
}
